﻿x='span'
def func1():
    print(x)
def func2():
    x='ni'
def func3():
    x='ni'
    print(x)

def func4():
    global x
    x='ni'
    print(x)
def func5():
    x='ni'
    def ohh():
        print(x)
    ohh()
def func6():
    x='ni'
    def zzz():
        nonlocal x
        x='Span'
    zzz()
    print(x)

func6()
print(x)